/* Markdown 全局样式 */
.markdown {
  font-size: 16px; /* 设置字体大小 */
  line-height: 1.6; /* 设置行高 */
  color: var(--text-color); /* 设置字体颜色 */
  font-family: var(--font-yahei);
}

.markdown h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  margin: 16px 0;
}


/* 段落样式 */
.markdown p {
  margin: 16px 0;
  line-height: 1.6;
}

.markdown hr {
    margin: 10px 0;
}

.markdown ul li, .markdown ol li {
    list-style: inherit;
    margin-left: 24px;
}

.markdown ul>li, .markdown ol>li {
   margin-top: 4px;
}

.markdown pre {
    border-radius: 2px;
    overflow-x: hidden;
}

.markdown code {
    padding: 0;
    font-size: 16px;
    background-color: inherit;
    font-family: Menlo, "Roboto Mono", "Courier New", Courier, monospace, "Inter", sans-serif;
    line-height: 1;
}

.markdown .alone-code {
  padding: .15rem .3rem;
  font-weight: 600;
  background-color: #ececec;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}
/* 代码块容器 */
.code-block {
    position: relative;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
  }
  
  /* 代码块头部 */
  .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    background-color: #50505a;
    font-size: 16px;
    color: #333;
  }

  .code-lang {
    color: white;
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Oxygen, Open Sans, sans-serif;
  }
  
  /* 复制按钮 */
  .code-header button {
    color: white;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
  }
